package cn.xmoit.flowable.controller;

import cn.xmoit.flowable.model.Result;
import cn.xmoit.flowable.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fangyy
 */
@RestController
public class RoleController {

	@Autowired
	RoleService roleService;

	@GetMapping("/roles")
	public Result getAllRoles() {
		return Result.ok("OK", roleService.getAllRoles());
	}

}
